#define _CRT_SECURE_NO_WARNINGS 1

#include "DList.h"

int main()
{
	DLTNode* plist = DLTInit();
	DLTPushBack(plist, 1);
	DLTPushBack(plist, 2);
	DLTPushBack(plist, 3);
	DLTPushBack(plist, 4);
	DLTPushBack(plist, 5);
	DLTPrint(plist);
	DLTPushFront(plist, 5);
	DLTPushFront(plist, 4);
	DLTPushFront(plist, 3);
	DLTPushFront(plist, 2);
	DLTPushFront(plist, 1);
	DLTPrint(plist);
	DLTPushFront(plist, 10);
	DLTPushFront(plist, 11);
	DLTPushFront(plist, 12);
	DLTPopBack(plist);
	DLTPopBack(plist);
	DLTPrint(plist);
	DLTDestory(plist);
	plist = NULL;
	//DLTPrint(plist);
	return 0;
}